<?php

class Ghekhach_model extends CI_Model{
    private $tbl='ghekhach';
            function __construct() {
        parent::__construct();
    }
    function insert($MSKH,$MSCB,$GHESO) {
        $DB=$this->load->database('nhanvien',TRUE);
        $DB->insert($this->tbl,array('MSKH'=>$DB->escape($MSKH),'GHESO'=>$DB->escape($GHESO),'MSCB'=>$DB->escape($MSCB),'GIA'=>"'100000'"));
    }
    function update($MSKH,$MSCB,$GHESO) {
        $DB=$this->load->database('nhanvien',TRUE);
        $DB->where(array('MSKH'=>$DB->escape($MSKH),'MSCB'=>$DB->escape($MSCB)));
        $DB->update($this->tbl,array('GHESO'=>$DB->escape($GHESO)));
    }
}

